<div id="artical_class" class="artical_class">
    <ul>
        <dl><i class="layui-icon">&#xe642;</i><a href="/index/Artical/articallist">{:__('写手咨询')}</a></dl>
    </ul>
</div>
<script>
    var info_category = getLocalStorage('info_category');
    htl = "";
    var catid = "{$catid}";
    catid = parseInt(catid);

    function getArticle()
    {
        var info_category = getLocalStorage('info_category');
        var info_categoryObj = JSON.parse(info_category);
        for(i in info_categoryObj){
            if(info_categoryObj[i]['id'] == catid){
                htl += '<dl class="choose_this"><i class="layui-icon">&#xe623;</i><a href="/index/Artical/articallist?catid='+info_categoryObj[i]['id']+'">'+info_categoryObj[i]['name']+'</a></dl>';
            } else {
                htl += '<dl><i class="layui-icon">&#xe623;</i><a href="/index/Artical/articallist?catid='+info_categoryObj[i]['id']+'">'+info_categoryObj[i]['name']+'</a></dl>';
            }
        }
        $("#artical_class ul").append(htl);
    }
    if(info_category != '' && info_category != null && info_category != undefined){
        getArticle();
    } else {
        objs = {
            'info_category':1
        };
        CacheLoad(objs);
        $(document).queue("info_category,",function(){
            getArticle();
        });
    }
    
</script>